<?php
class SGN_Gatekeeper_CheckLimit extends SGN_Gatekeeper_Abstract
{
    public function checkRule()
    {
        $user = array();
        $user['userId'] = Application_Model_SGN_Login::convertPassportId($_COOKIE['uin']);
        $user['addr'] = $_SERVER['REMOTE_ADDR'];
        
        //         $be = microtime(true);
        $accepted = Application_Model_SGN_GateKeeper::checkUserFromLimit($user, 
            $this->controller,
            $this->action
        );
        return ($accepted !== 1) ? true : false;
    } 
}